<?= $this->doctype() ?>
<html>
	<head>
		<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/bootstrap.min.css', 'all'); ?>
		<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/cerebro.css', 'all'); ?>

		<?php $this->headScript()->prependFile('http://html5shiv.googlecode.com/svn/trunk/html5.js', 'text/javascript', array('conditional' => 'lt IE 9')); ?>

		<?php $this->jQuery()->addJavascriptFile($this->baseUrl() . '/js/bootstrap.min.js'); ?>
		<?php $this->jQuery()->addJavascriptFile($this->baseUrl() . '/js/cerebro.js'); ?>

		<?= $this->headTitle(); ?>
		<?= $this->headMeta(); ?>
		<?= $this->headScript(); ?>
		<?= $this->jQuery(); ?>
		<?= $this->headLink(); ?>
		<?= $this->headStyle(); ?>
	</head>
	<body>
		<div class="navbar navbar-inverse navbar-fixed-top">
			<div class="navbar-inner">
				<div class="container">
					<a class="brand" href="<?= $this->baseUrl(); ?>"><?= App_Version::getName(); ?></a>

					<?php if (Zend_Auth::getInstance()->hasIdentity()): ?>
						<ul class="nav">
							<!--<li class="active"><a href="#">Home</a></li>-->
							<li><a href="#">Link</a></li>
							<li><a href="#">Link</a></li>
						</ul>

						<ul class="nav pull-right">
							<li><a href="<?= $this->url(array('controller' => 'user', 'action' => 'profile'), 'default', true); ?>"><?= Zend_Auth::getInstance()->getIdentity()->name; ?></a></li>
							<li><a href="<?= $this->url(array('controller' => 'user', 'action' => 'logout'), 'default', true); ?>">Log out</a></li>
						</ul>
					<?php endif; ?>
				</div>
			</div>
		</div>

		<div class="container">
			<?= $this->flashMessenger(); ?>

			<div>
				<?= $this->layout()->content; ?>
			</div>
		</div>
	</body>
</html>